package com.my.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.entity.Curriculum;
import com.my.mapper.CurriculumMapper;
import com.my.service.CurriculumService;
import org.springframework.stereotype.Service;

import java.util.LinkedList;
import java.util.Map;

@Service
public class CurriculumServiceImpl extends ServiceImpl<CurriculumMapper, Curriculum> implements CurriculumService {

    @Override
    public IPage<Curriculum> getList(IPage<Curriculum> page, Curriculum curriculum) {
        return baseMapper.getList(page, curriculum);
    }

    @Override
    public LinkedList<Map<String, Object>> getUserCurriculum(String time) {
        return baseMapper.getUserCurriculum(time);
    }

    @Override
    public Map<String, Object> getCurrentClockInCurriculum(Long userId) {
        return baseMapper.getCurrentClockInCurriculum(userId);
    }

    @Override
    public String upToDate(Long userId) {
        return baseMapper.upToDate(userId);
    }

}
